<?php
/**
 * 重启swoole 进程  暂 不可用
 */
exit("end");
$client = new Swoole\Client(SWOOLE_SOCK_TCP);
if (!$client->connect('127.0.0.1', 9501, 1)) {
    exit("connect failed. Error: {$client->errCode}\n");
}
$client->send("hello world\n");
var_dump($client->recv());
$client->close();